package com.example.controller;

import com.example.service.TemplateService;
import com.example.vo.CommonReturn;
import com.example.vo.TemplateVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TemplateController {
    private final static Logger logger =
            LoggerFactory.getLogger(TemplateController.class);
    
            @Autowired
            private TemplateService templateService;

    @RequestMapping(value = "/api/template/pagelist",method = RequestMethod.POST)
    public CommonReturn pageList(@RequestBody TemplateVO templateVO) {

        templateService.queryPageList();

        logger.info("templateVO:{}", templateVO);
        return CommonReturn.error( "");
    }
}
